//
//  WmcProjectAPI.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/3/29.
//

import Foundation
import RxSwift
import YPNetwork

struct WmcProjectAPI {
    /// 项目列表
    /// - DocumentUrl: http://rap2.taobao.org/organization/repository/editor?id=297881&mod=498372&itf=2194162
    /// - Returns: 项目model数组
    static func fetchProjectList() -> Observable<[WmcProjectModel]> {
        return WmcNetworkRequest.requestData(path: "/api/corp/list") { request in
            request.method = .get
        }.parseListModelWithClass(WmcProjectModel.self)
    }
}
